import { createStore } from 'vuex'



//创建全局变量仓库和全局函数仓库
const store=createStore({
	//全局变量，state 状态-变量
	state(){
		return{
			user:{
				name:'XXX',

				role:'xxx',
				rolename:"XXX",
				pic:'',	
				token:""
			},
			ip:'http://127.0.0.1:9000',
			errmsg:'提示信息....',
			erropen:3,
			
		}
	}
})


export default store;